<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="box">111</div>
    <div>222</div>
    <div class="item">33</div>
    <div class="item">44</div>
    <script src=" https://cdn.bootcdn.net/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script>
        /* 
        
            jquery 选择器
            $('#box')
                参数是css选择器
                返回值是一个伪数组--伪数组存放的是dom元素

        */
        //    类似原生js 中dom的选择器方法
        //    document.querySelectorAll('#box')
        // $('#box').css('color', 'green')
        // $('div').css('color', 'green')
        // $('div').css('color', 'green')
        // $('.item').css('color', 'yellow')

        console.log($('div')[0]);

        let div = document.querySelectorAll('div')[0]
        console.log(div);




    </script>

</body>

</html>